package cn.likole.oj.bean;

import org.nutz.dao.entity.annotation.*;

import java.util.Date;

/**
 * Created by likole on 8/1/18.
 * 用户成就
 */
@Table("user_achievement")
@PK(value = {"achievementId","userId"})
@TableIndexes(@Index(fields = "userId",unique = false))
public class UserAchievement {

    @Column
    private int achievementId;

    @Column
    private int userId;

    @Column
    private Date achieveTime;

    @Column
    @Default("0")
    private boolean showoff;

    public int getAchievementId() {
        return achievementId;
    }

    public void setAchievementId(int achievementId) {
        this.achievementId = achievementId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getAchieveTime() {
        return achieveTime;
    }

    public void setAchieveTime(Date achieveTime) {
        this.achieveTime = achieveTime;
    }

    public boolean isShowoff() {
        return showoff;
    }

    public void setShowoff(boolean showoff) {
        this.showoff = showoff;
    }
}
